const KoaRouter = require('koa-router');
const router = new KoaRouter();

router.post('/api/upload', require('./helper/upload')); // 上传文件接口
router.post('/api/signup', require('./controller/user/signup')); // 注册接口
router.post('/api/signin', require('./controller/user/signin')); // 登陆接口
// 用户
router.post('/api/user/update', require('./controller/user/update')); // 更新用户信息
router.get('/api/user/detail', require('./controller/user/detail')); // 用户详情
router.get('/api/user/list', require('./controller/user/list')); // 用户列表接口
// 好友
router.get('/api/friend/list', require('./controller/friend/list')); // 用户列表接口
router.post('/api/friend/create', require('./controller/friend/create')); // 添加好友申请
router.post('/api/friend/confirm', require('./controller/friend/confirm')); // 确认添加好友
router.post('/api/friend/updateRemark', require('./controller/friend/updateRemark')); // 修改好友备注
router.post('/api/friend/del', require('./controller/friend/del')); // 好友删除接口
// 朋友圈
router.get('/api/moment/list', require('./controller/moment/list')); // 朋友圈列表接口
router.post('/api/moment/create', require('./controller/moment/create')); // 发布朋友圈
router.post('/api/moment/del', require('./controller/moment/del')); // 删除朋友圈
// 用户聊天记录
router.get('/api/chat/list', require('./controller/chat_records/list')); // 发给我的聊天记录
router.post('/api/chat/update', require('./controller/chat_records/update')); // 已读消息

module.exports = router;
